<!DOCTYPE html5>
<html>
    <head>
        {include file="public/header"}
        <title>课程查看</title>
    </head>
    <body>
        <div class="wrapper">
            {include file="public/nav"}  
            <div id="page-wrapper" style="min-height: 325px;">
                <div class="row">
	                <div class="col-lg-12">
	                    <h1 class="page-header">课程查看</h1>
	                </div>
	                <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->
                <div class="row">
	                <div class="col-lg-12" >
                        <table width="100%" class="table table-striped table-bordered table-hover">
                            <thead>
                                <tr>
                                    <th>编号</th>
                                    <th>排序</th>
                                    <th>名称</th>
                                    <th>内容</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {volist name="cour" id="vo"}
                                <tr>
                                    <td>{$vo.cos_id}</td>
                                    <td>{$vo.cos_sort}</td>
                                    <td>{$vo.cos_title}</td>
                                    <td>
                                        <?php $con = unserialize($vo['cos_content']); ?>
                                        <?php foreach($con as $key=>$v){ ?>
                                        <div class="label label-primary"><?php echo $v ?></div>
                                        <?php } ?>
                                    </td>
                                    <td>
                                        {switch name="vo.cos_state"}
                                        {case value="0"}<div class="label label-success"><span class="fa fa-flag"></span></div>{/case}
                                        {case value="1"}<div class="label label-danger"><span class="fa fa-power-off"></span></div>{/case}
                                        {/switch}
                                    </td>
                                    <td>
                                        <a href="edit.html?id={$vo.cos_id}" type="button" class="btn btn-success btn-xs" target="_blank">编辑</a>
                                        <button type="button" class="btn btn-danger btn-xs">删除</button>
                                    </td>

                                </tr>
                                {/volist}
                            </tbody>
                        </table>
	                </div>
                </div>
            </div>
        </div>
        {include file="public/plane" /}
        {include file="public/javascript" /}
        <script type="text/javascript" src="/admin/script/course/index.js"></script>
    </body>
</html>
